{template 'web/_header'}
{template 'web/allorder/common_search'}
{template 'web/allorder/realgoods_tabs'}
<div class="main">
    <div class="panel panel-default">
        <div class="table-responsive panel-body">
            <table class="table table-hover">
                <thead class="navbar-inner">
                    <tr>
                        <th style="width:40px;">订单编号</th>
                        <th style="width:60px;">粉丝</th>
                        <th style="width:120px;">标题</th>
                        <th style="width:120px;">兑换物品</th>
                        <th style="width:60px;">收件人</th>
                        <th style="width:60px;">收件人电话</th>
                        <th style="width:60px;">收件人邮编</th>
                        <th style="width:180px;">收件地址</th>
                        <th style="width:100px;">兑换时间</th>
                        <th style="width:40px;">状态</th>
                        <th style="text-align:center;width:80px;">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $list $item}
                    <tr>
                        <td>{$item['tid']}</td>
                        <td><img src='{$item['avatar']}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$item['nickname']}</td>
                        <td>{$item['title']}</td>
                        <td><img src='{$item['thumb']}' style='max-width:50px; max-height: 30px;' />{$item['extra']['title']}</td>
                        <td>{$item['name']}</td>
                        <td>{$item['mobile']}</td>
                        <td>{$item['zipcode']}</td>
                        <td>{$item['province']} {$item['city']} {$item['district']} {$item['address']}</td>
                        <td>{$item['createtime']}</td>
                        <td>
                            {if $item['status'] == 0}
                            <span class="label label-danger">待发货</span>
                            {elseif $item['status'] == 1}
                            <span class="label label-warning">已发货</span>
                            {elseif $item['status'] == 2}
                            <span class="label label-success">已收货</span>	
                            {elseif $item['status'] == -1}
                            <span class="label label-default">已关闭</span>	
                            {/if}
                        </td>
                        <td style="text-align:center;">
                            <a href="{php echo $this->createWebUrl('allorder', array('op' => 'receiver','p'=>'realgoods_list','id'=>$item['tid']))}" title="编辑">编辑</a>
                        </td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
    </div>
    {$pager}
</div>
{template 'web/_footer'}